    var oUl = document.querySelector('.side-list');
    var aTable =document.querySelectorAll('.table table');
    //获取节点下标
    function getElementsIdx(item) {
      var elements = item.parentNode.children;
      for(var i=0,len = elements.length;i<len;i++){
        if(elements[i]==item) {
          return(i);
        }
      }
    }
    //事件绑定与委托，切换表
    var index = 0;
    oUl.onclick = function(event){
      if(event.target.tagName.toLowerCase() == 'li'){
        console.log(event.target);
        oUl.children[index].className='';
        oUl.children[index].id='';
        aTable[index].className='';
        index=getElementsIdx(event.target);
        oUl.children[index].className='on';
        oUl.children[index].id='on';
        aTable[index].className='active';
        adminSearch();
      }
    }